package com.dongan.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 代码表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_codes")
public class Codes implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父ID
     */
    @TableField("PARENT_ID")
    private Long parentId;

    /**
     * 代码标识
     */
    @TableField("CODE_ID")
    private String codeId;

    /**
     * 名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * DEF价值
     */
    @TableField("DEF_VALUE")
    private String defValue;

    /**
     * 备注说明
     */
    @TableField("DESCN")
    private String descn;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableLogic
    private Integer deleted;


}
